<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/sp_info_right.css">
</head>
<body>
	<div class="sp_div1">
		<div>
			<span class="sp_span">${sp_info.title}</span>
		</div>
		<div class="sp_divH">
			<div class="sp_div2">
				<img alt="找不到图片" src="${pageContext.request.contextPath }/image/article/${sp_info.image}">
				<br>
				<img alt="找不到图片" src="${pageContext.request.contextPath }/image/pingjia.png">
			</div>
			<div class="sp_div3">
			<form action="${pageContext.request.contextPath }/SP_carServlet?sp_id=${sp_info.id}">
				<table class="sp_table">
					<tr>
						<td class="sp_td1">供应商：</td>
						<td class="sp_td2">${sp_info.supplier}</td>
					</tr>
					<tr>
						<td class="sp_td1">出产地：</td>
						<td class="sp_td2">${sp_info.locality}</td>
					</tr>
					<tr>
						<td class="sp_td1"></td>
						<td class="sp_td2"></td>
					</tr>

					<tr>
						<td class="sp_td1">定 价：</td>
						<td class="sp_td2">￥${sp_info.price}</td>
					</tr>
					<tr>
						<td class="sp_td5">疯 狂 价：</td>
						<td class="sp_td4">￥<fmt:formatNumber type="number" value="${sp_info.price*sp_info.discount}" pattern="0.00" maxFractionDigits="2"></fmt:formatNumber> （${sp_info.discount }折）</td>
					</tr>
					<tr>
						<td class="sp_td1">库 存：</td>
						<td class="sp_td2">${sp_info.storage} 下单后立即发货</td>
					</tr>
					<tr>
						<td class="sp_td1">促销信息：</td>
						<td class="sp_td4">该商品参加满减活动，购买活动商品每满300元，可减100元现金</td>
					</tr>
					<tr>
						<td colspan="2" class="sp_td3">我要买:
						<input type="submit" value="-">
						<input type="text"  value="1" class="sp_input2" name="number">
						<input type="submit" value="+">
						</td>
					</tr>
					<tr>
						<td colspan="2" class="sp_td3">
						<!-- <a href="${pageContext.request.contextPath}/jsp/sp_cart.jsp"><img alt="找不到图片" src="${pageContext.request.contextPath }/image/add_car.png"></a> -->
						<input type="submit" value="加入购物车" id="submit" name="submit">
						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>

	</div>
</body>
</html>